package com.baosight.risk.mapper.riaa;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.riaa.entity.RiquInquiryDetail;
import com.baosight.risk.service.riaa.vo.RiquInquiryDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RiquInquiryDetailMapper extends BaseMapper<RiquInquiryDetail> {

    List<RiquInquiryDetailVO> quesAnalysis(@Param("quId") String quId);
    List<RiquInquiryDetailVO> quesAnalysisGroupByQuesNo(@Param("quId") String quId);

    List<RiquInquiryDetailVO> queryInquiryInfo(@Param("qVO")RiquInquiryDetailVO qVO);

    List<RiquInquiryDetail> selectDetalByCompId(@Param("compId") String compId);

    List<RiquInquiryDetail> selectDetalByBGTACompId(@Param("compId") String compId,@Param("dutyCompCode") String dutyCompCode);

    Integer deleteByCompId(@Param("compId") String compId);

    Integer queryMaxRowOrder(@Param("compId") String compId);

    List<RiquInquiryDetail> queryByResultId(@Param("quResultId") String quResultId);

    void deleteByIds(@Param("ids") List<String> ids);
}